<template>
 <div>
   <div class="head">
     <div class="img">
     	<img src="../assets/images/user.png" alt="">
     </div>
     <div class="info">
     	<div class="info_top">{{username}}</div>
     	<div class="info_bottom">
     		<div>v0</div>
     		<img src="../assets/images/jiangpai.png" alt="">
     	</div>
     </div>
     <div class="right">
     	<img src="../assets/images/right.png" alt="">
     </div>
   </div>
   <div class="part_one">
   	 <router-link tag="div" to="/product" class="one_left">
   	 	<img src="../assets/images/shoucang.png" alt="">商品收藏
   	 </router-link>
   	 <router-link tag="div" to="/store" class="one_right">
   	 	<img src="../assets/images/dianpu.png" alt="">店铺收藏
   	 </router-link>
   </div>
   <div class="part_two">
   	 我的订单
   	 <router-link tag="a" to="/order">查看全部订单&nbsp;></router-link>
   </div>
   <div class="part_three">
   	 <router-link tag="div" to="/order">
   	 	<p><i class="iconfont icon-daishoukuan"></i></p>
        待付款
   	 </router-link>
   	 <router-link tag="div" to="/order">
   	 	<p><i class="iconfont icon-daishouhuo"></i></p>
        待收货
   	 </router-link>
   	 <router-link tag="div" to="/order">
   	 	<p><i class="iconfont icon-daipingjia01"></i></p>
        待评价
   	 </router-link>
   	 <router-link tag="div" to="/order">
   	 	<p><i class="iconfont icon-shouhouguanli"></i></p>
        退款/售后
   	 </router-link>
   </div>
   <div class="part_four">
   	 <router-link tag="div" to="/integral">
   	 	<p><i class="iconfont icon-gouwudai" style="color:#F97664;"></i></p>
        积分商城
   	 </router-link>
   	 <div>
   	 	<p><i class="iconfont icon-weibiaoti2fuzhi02" style="color:#77A7FF;"></i></p>
        优惠券
   	 </div>
   	 <div>
   	 	<p><i class="iconfont icon-weibiaoti2fuzhi08" style="color:#91C66A;"></i></p>
        收货地址
   	 </div>
   	 <div>
   	 	<p><i class="iconfont icon-kefu" style="color:#FF8400;"></i></p>
        客服/反馈
   	 </div>
   </div>
   <div class="part_five">
   	 <div>
   	 	<p><i class="iconfont icon-wode1" style="color:#F97664;"></i></p>
        关于我们
   	 </div>	 
   </div>
   <div class="part_six" @click='Signout'>
   	退出当前账号
   </div>
 </div>
</template>

<script>
    export default {
        name: 'MyComponent',
        data(){
        	return{
        		username:localStorage.getItem('username')
        	}
        },
        methods:{
        	Signout(){
        		this.$router.push('/login')
        	}
        }
    }
</script>

<style scoped>

.head{
	width: 100%;
	height: 2.5rem;
	background-color: #FFD600;
	position: relative;
}
.img{
	width: 1.4rem;
	height: 1.4rem;
	background-color: #FFFFFF;
	border-radius: 50%;
	display: inline-block;
	position: absolute;
	left: 0.4rem;
	top: 0.47rem;
	overflow: hidden;
}
.img img{
	width: 100%;
	height: 100%;
}
.info{
	display: inline-block;
	width: 3rem;
	height: 1.4rem;
	position: absolute;
	left: 2.3rem;
	top: 0.47rem;
	position: relative;
}
.info_top{
	color: white;
	font-size: 0.35rem;
	line-height: 0.75rem;
}
.info_bottom{
	width: 70%;
	height: 0.5rem;
	background-color: #FFF5BF;
	border-radius: 0.25rem;
	text-align: left;
    line-height: 0.5rem;
    padding-left: 0.7rem;
    color: red;
}
.info_bottom img{
	position: absolute;
	left: -0.2rem;
	top: 0.65rem;
	width: 0.75rem;
	height: 0.75rem;
}
.right{
	position: absolute;
	top: 0.77rem;
	left: 6.5rem;
}
.right img{
	width: 0.7rem;
	height: 0.7rem;
}
.part_one{
	width: 100%;
	height: 0.9rem;
	background-color: #F3C800;
	display: flex;
}
.one_left,.one_right{
	line-height: 0.9rem;
	flex: 1;
	text-align: center;
	color: white;
}
.one_left img,.one_right img{
	width: 0.45rem;
	height: 0.45rem;
	position: relative;
	top: 0.1rem;
	margin-right: 0.3rem;
}
.one_right{
	flex: 1;
	border-left: 2px solid white;
}
.part_two{
	width: 100%;
	height: 1rem;
	background-color: white;
	margin-top: 0.15rem;
	line-height: 1rem;
	font-size: 0.3rem;
	padding: 0 0.25rem;
}
.part_two a{
	float: right;
	color: #ccc;
}
.part_three{
	width: 100%;
	height: 1.7rem;
	background-color: white;
	margin-top: 0.05rem;
	display: flex;
}
.part_three div,.part_four div{
	text-align: center;
	padding-top: 0.35rem;
	flex: 1;
}
.part_three div i,.part_four div i,.part_five div i{
	font-size: 0.55rem;
}
.part_four{
	padding-top: 0.2rem;
	width: 100%;
	height: 2rem;
	background-color: white;
	margin-top: 0.15rem;
	display: flex;
}
.part_five{
	padding-top: 0.2rem;
	width: 100%;
	height: 2rem;
	background-color: white;
	margin-top: 0.05rem;
	display: flex;
}
.part_five div{
	text-align: center;
	padding-top: 0.35rem;
	flex: 0.25;
}
.part_six{
	width: 100%;
	height: 1rem;
	background-color: white;
	margin-top: 0.5rem;
	text-align: center;
	margin-bottom: 0.3rem;
	line-height: 1rem;
}
</style>